package io.bsly.modules.app.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class CouponVo {
    /**
     * 表id
     */
    private Integer cid;
    /**
     *
     */
    private Integer userId;
    /**
     * 用户名
     */
    private Integer username;
    /**
     * 抖音订单号
     */
    private String dyOrderCode;
    /**
     * 抖音核销码
     */
    private String dyCouponCode;

    /**
     * 可用间夜数
     */
    private Integer currentNightCount;
    /**
     * 核销码状态1 待激活 2激活 3无效使用完次数，4激活失败
     */
    private Integer status;

    /**
     * 失败理由
     */
    private String refuseReason;

    /**
     * 以下为产品相关信息
     */

    /**
     * 绑定产品id
     */
    private Integer productId;
    /**
     * 绑定产品编码
     */
    private String productCode;

    private String productName;

    private String city;

    private BigDecimal price;

    private Integer totalNightCount;

    private Integer meals;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
